package DesignPattern.Proxy.JDK;

/**
 * @Author: Jun
 * @Date: 2018/9/28 10:59
 */
public class testJdkProxy {
    public static void main(String[] args) {
    testJdkProxy testJdkProxy=new testJdkProxy();
    testJdkProxy.testJdkProxy();
    }
    public void testJdkProxy(){
        jdkProxy jdkProxy=new jdkProxy();
        HelloWorld proxy= (HelloWorld) jdkProxy.bind(new HelloWorldImpl());
        proxy.sayHelloWorld();
    }
}
